<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
       <%@  taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
   <%@ taglib prefix="my" uri="http://gson.cn/jsp/jstl/mytags" %>  
    <%
           String path = request.getContextPath();
           String basePath =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="en">
 <head>
 <base href="<%= basePath%>">
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
   <link href="static/css/gw.css" rel="stylesheet" type="text/css">
  <title>联想商城-购物车</title>
    <link rel="icon" href="static/img/b2c_favicon.ico" type="image/x-icon">
 
</head>
<body>
<div>
<div class="shou"><div class="Y"> <span class="you"><a class="zi">返回首页 </a> |  <a class="zi">登录  </a>  | <a class="zi">注册  </a> | </span></div></div>
<div class="big">
<div class="er">
<div class="gwc"><img src="static/img/gw01.jpg" width="180px" height="38" class="tu1"></div>
<div class="lc"><img src="static/img/gw02.jpg" width="333px" height="42" class="tu2"></div>
</div>
<div class="san">
<table class="xian">
<tr >

<th colspan="3" width="25%">商品编号</th>
<th	width="14%">商品</th>
<th width="14%">规格</th>
<th width="13%">单价</th>
<th width="13%">数量</th>
<th width="13%">金额</th>
<th width="10%">操作</th>
</tr>
</table>
</div> 	
	
	<c:if test="${list1==null}">  
	<div class="gw">
			<img src="static/img/gw03.jpg" width="8%" height="35%" class="tu3">
			<h3>您的购物车内暂无商品，您可以<a" title="选购商品"  class="dian">选购商品</a></h3>
	</div>
	</c:if>
	<c:if test="${list1!=null}">
	<div class="car">
		<c:forEach items="${list1}" var="a">
			<table class="sp" style="margin-left:-30px;">
					<tr  >			<input type="checkbox"/>
					<th style="font-weight:normal;" colspan="3" name="spbh"  width="25%" class="shangpbianhao" id="${a.gspbh1}">${a.gspbh1}</th>
					<th style="font-weight:normal;"	width="14%">${a.gtradename}</th>
					<th style="font-weight:normal;" width="14%" style="margin-left:20px;">${a.chicun}${a.xitong}${a.peizhi}</th>
					<th style="font-weight:normal;" width="13%">${a.gprice}</th>
					<th style="font-weight:normal;" width="13%"><input type="button" style="width:20px;" id="jiana" name="jia" value="-"/>
											<input type="text" style="width:40px;text-align:center;" name="shuliang" value="${a.cquantity}"/>
											<input type="button" name="jian" id="jiaa" style="width:20px;" value="+"/></th>
					<th style="font-weight:normal;" width="13%">${a.gprice*a.cquantity}</th>
					<th style="font-weight:normal;" width="10%">删除</th>
					</tr>
			</table>
		</c:forEach>
	</div>
	<div class="jiesuan">
		<div class="jie_num">
			<input type="checkbox"/>
			<span>全选</span>
			<a>删除选中商品</a>
			<ul class="qian">
				<li class="zong">商品总价：￥<span style="color:Red;font-size:20px;">${zong}</span></li>
				<li class="money">去结算</li>
			</ul>
		</div>
	</div>
	</c:if> 
	 		<input type="hidden" value="${shop}" name="sp_sp">
	 		 

<div class="box">
<div class="tp">
</div></div>
<div class="x">
<div class="xx">
<div class="D">
<dl class="d1">
<dt>
<h4>购物指南</h4>
</dt>
<dd>服务商信息</dd>
<dd>购买流程</dd>
<dd>注册登录</dd>
</dl>
</div>
<div class="D">
<dl class="d2">
<dt>
<h4>配送方式</h4>
</dt>
<dd>配送方式</dd>
<dd>配送方式信息</dd>
<dd>签收物流</dd>
<dd>物流查询</dd>
</dl>
</div>
<div class="D">
<dl class="d3">
<dt>
<h4>支付方式</h4>
</dt>
<dd>支付方式</dd>
<dd>支付问题</dd>
<dd>分期支付</dd>
</dl>
</div>
<div class="D">
<dl class="d4">
<dt>
<h4>订单信息</h4>
</dt>
<dd>订单信息</dd>
<dd>其他频道订单发票</dd>
<dd>手机频道订单发票</dd>
</dl>
</div>
<div class="D">
<dl class="d5">
<dt>
<h4>售后服务</h4>
</dt>
<dd>Lenovo频道商品售后</dd>
<dd>手机频道商品售后7天</dd>
<dd>无理由退换货说明</dd>
</dl>
</div>
<div class="D">
<dl class="d6">
<dt>
<h4>其他说明</h4>
</dt>
<dd>服务承诺</dd>
<dd>账户安全</dd>
<dd>产品安全</dd>
</dl>
</div>
</div>
</div>
<div class="wei">
<div class="wei1">关于联想 | 联系我们 | 新闻中心 | 工作机会 | 联想官网热搜榜 | 分类大全 | 联想产品大全 | NBD | 联想超融合 | 联想研究院 | 智慧医疗</div>
<div class="tz"><img  src="static/img/gw05.png"width="15%" height="15%" class="gj"></div><div class="weitu">China</div>
<div class="wei2">
版权所有：1998-2017 联想集团| 法律公告 | 隐私保护 | 京ICP备11035381 |京公网安备110108007970号| 营业执照：110000410127232 | 销售网点 | 服务网点
</div>
</div>
</div>
</div>
</body>
</html>
	<script src="static/js/jquery-3.1.0.js"></script>
		<script type="text/javascript">
			 $(function (){
				$('#jiaa').click(function(){
					var j =  $('input[name=jian]').val();
					var l= $('input[name=shuliang]').val();
					var sd=$(".shangpbianhao").attr("id");
					location.href="gouwuche?jia="+j+"&ip="+sd+"&liang="+l;
				});
				
				$('#jiana').click(function(){
					var j =  $('input[name=jia]').val();
					var l= $('input[name=shuliang]').val();
					var sd=$(".shangpbianhao").attr("id");
					location.href="gouwuche?jia="+j+"&ip="+sd+"&liang="+l;
				});
				
				$('.money').click(function(){
					var sp = $('input[name=sp_sp]').val();
					location.href="AccountServlet?sp_sp"+sp;
				})
			 });
		</script>
		
		
		
		
